/*  
	------------------------------------------------------------------------
	 NQ Core Library
	
	 Homepage: http://www.awzhome.de/
	------------------------------------------------------------------------
	
	This Source Code Form is subject to the terms of the Mozilla Public
	License, v. 2.0. If a copy of the MPL was not distributed with this
	file, You can obtain one at http://mozilla.org/MPL/2.0/.
   
	The Original Code is code of NQ Core Library.

	The Initial Developer of the Original Code is Andreas Weizel.
	Portions created by the Initial Developer are
	Copyright (C) 2012 Andreas Weizel. All Rights Reserved.
	
	Contributor(s): (none)
	
	------------------------------------------------------------------------
*/

using System;

namespace AWZhome.NQ.Core
{
	/// <summary>
	/// Provides data for the event fired by the Service Manager when a service instance is destroyed.
	/// </summary>
	public class NQServiceDestroyedEventArgs : EventArgs
	{
		/// <summary>
		/// Constructor initializing the object with the name of the destroyed service.
		/// </summary>
		/// <param name="destroyedService"></param>
		public NQServiceDestroyedEventArgs(Type destroyedService)
		{
			this.DestroyedService = destroyedService;
		}

		/// <summary>
		/// Returns the registered interface of the destroyed service.
		/// </summary>
		public Type DestroyedService
		{
			get;
			private set;
		}
	}
}
